Santa countdown: a Jlerts custom widget
=======================================

The shadow of Santa's sleigh crossing the distant sky, flying left to right, then right to left next time, with a
magical snow trail behind it. Its reindeer gallop, it rises and falls gently on the wind, and Rudolph's nose glows.
An optional banner towed behind says how many days until Christmas, worked out from your PC's date.

On Christmas Day it flies a loop in the middle of the screen and pops into a celebration: fireworks, falling sparkles
and "Merry Christmas!". It plays once, when you start up on the day or at midnight if you're already live.

Add it to Jlerts
1. Unzip this folder somewhere it can stay (for example Documents\Jlerts widgets\Santa countdown).
2. In Jlerts: Widgets -> + New widget -> Custom widget (HTML / CSS / JS).
3. Widget folder -> Choose folder... and pick this folder. Its settings appear underneath.
4. It takes its own name and size (1920 x 360) from widget.json when you choose the folder. Drag it to the top of your
   overlay. It fits any width: drag the edges of its box and it flies from edge to edge of the box.

Chat commands (you and your mods)
  !santa fly      sends it across now, if it's between flights
  !santa finale   plays the Christmas Day celebration, to see it

Settings
- Show the countdown banner, and its words ({days} is the number).
- How many seconds it takes to cross, and how many minutes between flights (0 = keeps flying back and forth).
- Its size: smaller looks further away.
- The shadow's colour and how solid it is, and a faint moonlit edge that keeps it visible over dark games.
- Rudolph's red nose, the snow trail, the celebration and its words, and the font.
- Sleigh bells and "Fa la la" with the celebration (off until you tick it): the bells come closer as the sleigh flies in,
  and the tune starts on the pop. Use its Play preview button to hear it (only you hear that, not your stream).
- Or your own sound instead: put an .mp3, .wav or .ogg in this widget's folder (Open folder in its settings) and type its
  name in the box. It plays when the celebration pops. !santa finale plays either sound, to try it on your overlay.
- In OBS, the sound comes through the browser source (tick "Control audio via OBS" to give it its own volume slider).

Christmas Day
Santa keeps to its schedule, but never runs into the celebration: if a flight is due too late to be gone in time, it
leaves early as the last flight instead. The loop then sets off about 9 seconds before midnight and pops on the stroke
of midnight. The celebration plays once a year (trying it with !santa finale doesn't use it up). If the widget only
opens in the last few seconds, or on Christmas Day itself, the celebration plays straight away instead.

Change it
  widget.json  its name and size when it's added
  fields.json  the settings people can change without code
  style.css    the moonlit edge and the glow
  script.js    the drawing, the flying, the harness, the sparkles and the celebration
After changing a file, refresh the overlay in OBS (right-click it -> Refresh).

Free to use and change for your streams.
